package com.bingo.daoImpl;

import java.io.Serializable;

import org.springframework.dao.support.DaoSupport;
import org.springframework.jdbc.object.SqlCall;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.bingo.dao.DAO;

public class BaseDAO extends SqlMapClientDaoSupport implements DAO {

	public void delete(String sqlSwitch,Object obj) throws Exception {
		this.getSqlMapClientTemplate().delete(sqlSwitch,obj);
	}

	public void insert(String sqlSwitch,Object obj) throws Exception {
		this.getSqlMapClientTemplate().insert(sqlSwitch,obj);
	}

	public Object select(String sqlSwitch,Number primrayKey) throws Exception {
		return this.getSqlMapClientTemplate().queryForObject(sqlSwitch,primrayKey);
	}

	public void update(String sqlSwitch,Object obj) throws Exception {
		this.getSqlMapClientTemplate().update(sqlSwitch,obj);
	}

}
